package lxs.tool.liberator.work.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import lxs.tool.liberator.work.param.in.MultiOptions;
import lxs.tool.liberator.work.param.in.ParamIn;


import lxs.tool.liberator.work.pojo.Param;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ParamMapper extends BaseMapper<Param> {
    List<ParamIn> showTable(@org.apache.ibatis.annotations.Param("projectId") String projectId);

    List<MultiOptions> getOptions();

    List<MultiOptions> getTypeOptions();

    List<MultiOptions> getFuncOptions();

    List<Param> getChildParam(String id);

    List<Param> getInterfaceParam(String iid);

    Param getInterfaceParamByWhat(String iid, String what);

    void saveTree(@org.apache.ibatis.annotations.Param("id") String id, @org.apache.ibatis.annotations.Param("json") String json);
}
